<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>OpenShoe: flashc.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenShoe
   &#160;<span id="projectnumber">0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">flashc.h</div>  </div>
</div>
<div class="contents">
<a href="flashc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00040"></a>00040 <span class="preprocessor">#ifndef _FLASHC_H_</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define _FLASHC_H_</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;avr32/io.h&gt;</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include &lt;stddef.h&gt;</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include &quot;<a class="code" href="compiler_8h.html" title="Compiler file for AVR32.">compiler.h</a>&quot;</span>
<a name="l00046"></a>00046 
<a name="l00048"></a><a class="code" href="flashc_8h.html#aa70e373b96ff9c00883f284ca308e592">00048</a> <span class="preprocessor">#define AVR32_FLASHC_REGIONS  (AVR32_FLASHC_FLASH_SIZE /\</span>
<a name="l00049"></a>00049 <span class="preprocessor">                        (AVR32_FLASHC_PAGES_PR_REGION * AVR32_FLASHC_PAGE_SIZE))</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 
<a name="l00060"></a>00060 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="flashc_8c.html#a8071c315b02d038c49fa0bf89a40ba1b" title="Gets the size of the whole flash array.">flashc_get_flash_size</a>(<span class="keywordtype">void</span>);
<a name="l00061"></a>00061 
<a name="l00066"></a>00066 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="flashc_8c.html#aafad0dcf645cc65acb5bc879558dac23" title="Gets the total number of pages in the flash array.">flashc_get_page_count</a>(<span class="keywordtype">void</span>);
<a name="l00067"></a>00067 
<a name="l00072"></a>00072 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="flashc_8c.html#a8910bcde3235e2af0770fbd2412b05bc" title="Gets the number of pages in each flash region.">flashc_get_page_count_per_region</a>(<span class="keywordtype">void</span>);
<a name="l00073"></a>00073 
<a name="l00083"></a>00083 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="flashc_8c.html#ac5871dc98c8812b0413efd6456508999" title="Gets the region number of a page.">flashc_get_page_region</a>(<span class="keywordtype">int</span> page_number);
<a name="l00084"></a>00084 
<a name="l00091"></a>00091 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="flashc_8c.html#a43b14107d406ea9025f8947490c9ddcd" title="Gets the number of the first page of a region.">flashc_get_region_first_page_number</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> region);
<a name="l00092"></a>00092 
<a name="l00094"></a>00094 
<a name="l00095"></a>00095 
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 
<a name="l00104"></a>00104 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="flashc_8c.html#a52784dbdd246c6c320e5041026d4da08" title="Gets the number of wait states of flash read accesses.">flashc_get_wait_state</a>(<span class="keywordtype">void</span>);
<a name="l00105"></a>00105 
<a name="l00111"></a>00111 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a2835c7ef58f410290ad530d34d7e8133" title="Sets the number of wait states of flash read accesses.">flashc_set_wait_state</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wait_state);
<a name="l00112"></a>00112 
<a name="l00118"></a>00118 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a5dda977da7d7381b125b2fa25ef9ae90" title="Depending on the CPU frequency, set the wait states of flash read accesses.">flashc_set_bus_freq</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> cpu_f_hz);
<a name="l00123"></a><a class="code" href="flashc_8h.html#aaff87fb23744c3ee7950205eb4f09213">00123</a> <span class="preprocessor">#define flash_set_bus_freq(cpu_f_hz) flashc_set_bus_freq(cpu_f_hz)</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span>
<a name="l00129"></a>00129 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#ac3b57583a1683e980be72aec960bc42f" title="Tells whether the Flash Ready interrupt is enabled.">flashc_is_ready_int_enabled</a>(<span class="keywordtype">void</span>);
<a name="l00130"></a>00130 
<a name="l00136"></a>00136 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#acb787828c6062e483c190500cad25193" title="Enables or disables the Flash Ready interrupt.">flashc_enable_ready_int</a>(<span class="keywordtype">bool</span> enable);
<a name="l00137"></a>00137 
<a name="l00142"></a>00142 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#aa55186e65b46eb60aa32901a410f3fc2" title="Tells whether the Lock Error interrupt is enabled.">flashc_is_lock_error_int_enabled</a>(<span class="keywordtype">void</span>);
<a name="l00143"></a>00143 
<a name="l00149"></a>00149 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a112d456e3ea093f9699aeb8fa7e818c1" title="Enables or disables the Lock Error interrupt.">flashc_enable_lock_error_int</a>(<span class="keywordtype">bool</span> enable);
<a name="l00150"></a>00150 
<a name="l00155"></a>00155 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a5050d8497779a0e24ac74689597834c2" title="Tells whether the Programming Error interrupt is enabled.">flashc_is_prog_error_int_enabled</a>(<span class="keywordtype">void</span>);
<a name="l00156"></a>00156 
<a name="l00162"></a>00162 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a432b5d4f0d90ca9facba780d99f08ae9" title="Enables or disables the Programming Error interrupt.">flashc_enable_prog_error_int</a>(<span class="keywordtype">bool</span> enable);
<a name="l00163"></a>00163 
<a name="l00165"></a>00165 
<a name="l00166"></a>00166 
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 
<a name="l00175"></a>00175 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#adda694b46dcd563dab0c4be794dd2060" title="Tells whether the FLASHC is ready to run a new command.">flashc_is_ready</a>(<span class="keywordtype">void</span>);
<a name="l00176"></a>00176 
<a name="l00181"></a>00181 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#aca88002d64a494ca5b796b592834369d" title="Waits actively until the FLASHC is ready to run a new command.">flashc_default_wait_until_ready</a>(<span class="keywordtype">void</span>);
<a name="l00182"></a>00182 
<a name="l00187"></a>00187 <span class="keyword">extern</span> void (*<span class="keyword">volatile</span> <a class="code" href="flashc_8c.html#a180c9966f5242650e00e4a231956acec">flashc_wait_until_ready</a>)(void);
<a name="l00188"></a>00188 
<a name="l00195"></a>00195 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#abc9239c2bde687eb3324d2d839493b4e" title="Tells whether a Lock Error has occurred during the last function called that issued one or more FLASH...">flashc_is_lock_error</a>(<span class="keywordtype">void</span>);
<a name="l00196"></a>00196 
<a name="l00203"></a>00203 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a96f2a8ec38721359b09bb9214c025b7f" title="Tells whether a Programming Error has occurred during the last function called that issued one or mor...">flashc_is_programming_error</a>(<span class="keywordtype">void</span>);
<a name="l00204"></a>00204 
<a name="l00206"></a>00206 
<a name="l00207"></a>00207 
<a name="l00210"></a>00210 
<a name="l00211"></a>00211 
<a name="l00216"></a>00216 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="flashc_8c.html#a36519235197ff4d6ab7f5adcb3fce6c1" title="Gets the last issued FLASHC command.">flashc_get_command</a>(<span class="keywordtype">void</span>);
<a name="l00217"></a>00217 
<a name="l00222"></a>00222 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="flashc_8c.html#adb51a37e3153c24e5dd6cf06daac0e21" title="Gets the current FLASHC page number.">flashc_get_page_number</a>(<span class="keywordtype">void</span>);
<a name="l00223"></a>00223 
<a name="l00243"></a>00243 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a8045c427c32cf3617e861067d76c9c11" title="Issues a FLASHC command.">flashc_issue_command</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> command, <span class="keywordtype">int</span> page_number);
<a name="l00244"></a>00244 
<a name="l00246"></a>00246 
<a name="l00247"></a>00247 
<a name="l00250"></a>00250 
<a name="l00251"></a>00251 
<a name="l00257"></a>00257 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#aac955da1ba0b0833d17d3068c34222ec" title="Issues a No Operation command to the FLASHC.">flashc_no_operation</a>(<span class="keywordtype">void</span>);
<a name="l00258"></a>00258 
<a name="l00275"></a>00275 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a56f654a36c20b651412bbb689b8a4b2c" title="Issues an Erase All command to the FLASHC.">flashc_erase_all</a>(<span class="keywordtype">void</span>);
<a name="l00276"></a>00276 
<a name="l00278"></a>00278 
<a name="l00279"></a>00279 
<a name="l00282"></a>00282 
<a name="l00283"></a>00283 
<a name="l00288"></a>00288 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#ab07cd7525d8cdfad6c4c563310cddee2" title="Tells whether the Security bit is active.">flashc_is_security_bit_active</a>(<span class="keywordtype">void</span>);
<a name="l00289"></a>00289 
<a name="l00295"></a>00295 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a245cc33e09bc45b78d4fdc189ba6fd85" title="Activates the Security bit.">flashc_activate_security_bit</a>(<span class="keywordtype">void</span>);
<a name="l00296"></a>00296 
<a name="l00301"></a>00301 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="flashc_8c.html#a83ed88a41076163bd29ca80d30cb094f" title="Gets the bootloader protected size.">flashc_get_bootloader_protected_size</a>(<span class="keywordtype">void</span>);
<a name="l00302"></a>00302 
<a name="l00317"></a>00317 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="flashc_8c.html#a076a1b22c9f3e6dad1739f0398f89b37" title="Sets the bootloader protected size.">flashc_set_bootloader_protected_size</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> bootprot_size);
<a name="l00318"></a>00318 
<a name="l00323"></a>00323 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#ae5d2a26e4f0666cc2ed260feb528a560" title="Tells whether external privileged fetch is locked.">flashc_is_external_privileged_fetch_locked</a>(<span class="keywordtype">void</span>);
<a name="l00324"></a>00324 
<a name="l00334"></a>00334 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a97c8b9ed8f952803a3911af33ba8d553" title="Locks or unlocks external privileged fetch.">flashc_lock_external_privileged_fetch</a>(<span class="keywordtype">bool</span> lock);
<a name="l00335"></a>00335 
<a name="l00345"></a>00345 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a50d3b06a3a82ba1e7c56193c3c24f7ef" title="Tells whether the region of a page is locked.">flashc_is_page_region_locked</a>(<span class="keywordtype">int</span> page_number);
<a name="l00346"></a>00346 
<a name="l00353"></a>00353 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a152b45f38eafcf708e52df5a814d048e" title="Tells whether a region is locked.">flashc_is_region_locked</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> region);
<a name="l00354"></a>00354 
<a name="l00367"></a>00367 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a4bc67adcf6690cc7e83fd42560a5e526" title="Locks or unlocks the region of a page.">flashc_lock_page_region</a>(<span class="keywordtype">int</span> page_number, <span class="keywordtype">bool</span> lock);
<a name="l00368"></a>00368 
<a name="l00377"></a>00377 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#aefc77ff29ddc03fa5e605acd7f9eeb7c" title="Locks or unlocks a region.">flashc_lock_region</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> region, <span class="keywordtype">bool</span> lock);
<a name="l00378"></a>00378 
<a name="l00386"></a>00386 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a8ec3c05f8b1a620a5014e2c066b7f0bf" title="Locks or unlocks all regions.">flashc_lock_all_regions</a>(<span class="keywordtype">bool</span> lock);
<a name="l00387"></a>00387 
<a name="l00389"></a>00389 
<a name="l00390"></a>00390 
<a name="l00393"></a>00393 
<a name="l00394"></a>00394 
<a name="l00405"></a>00405 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a41488c15448086169266af4936ea7926" title="Reads a general-purpose fuse bit.">flashc_read_gp_fuse_bit</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> gp_fuse_bit);
<a name="l00406"></a>00406 
<a name="l00420"></a>00420 <span class="keyword">extern</span> uint64_t <a class="code" href="flashc_8c.html#a48db4e70ec0449ea94c9c92643c26d8e" title="Reads a general-purpose fuse bit-field.">flashc_read_gp_fuse_bitfield</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pos, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width);
<a name="l00421"></a>00421 
<a name="l00432"></a>00432 <span class="keyword">extern</span> uint8_t <a class="code" href="flashc_8c.html#a86b9023e1160178df2f46aff4dfddda3" title="Reads a general-purpose fuse byte.">flashc_read_gp_fuse_byte</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> gp_fuse_byte);
<a name="l00433"></a>00433 
<a name="l00442"></a>00442 <span class="keyword">extern</span> uint64_t <a class="code" href="flashc_8c.html#abdba94fb9eb09177ced3df0ad80b1554" title="Reads all general-purpose fuses.">flashc_read_all_gp_fuses</a>(<span class="keywordtype">void</span>);
<a name="l00443"></a>00443 
<a name="l00464"></a>00464 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#ac5454efcadb99899bfe075b463a2e6dd" title="Erases a general-purpose fuse bit.">flashc_erase_gp_fuse_bit</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> gp_fuse_bit, <span class="keywordtype">bool</span> check);
<a name="l00465"></a>00465 
<a name="l00489"></a>00489 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a840a6f529e33adbd3759f276a0255aee" title="Erases a general-purpose fuse bit-field.">flashc_erase_gp_fuse_bitfield</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pos, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, <span class="keywordtype">bool</span> check);
<a name="l00490"></a>00490 
<a name="l00510"></a>00510 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#acb14ac40b939a0804e8e72a8d58f5f68" title="Erases a general-purpose fuse byte.">flashc_erase_gp_fuse_byte</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> gp_fuse_byte, <span class="keywordtype">bool</span> check);
<a name="l00511"></a>00511 
<a name="l00530"></a>00530 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a59b9644a7f13bc4e510bdac498b27fb5" title="Erases all general-purpose fuses.">flashc_erase_all_gp_fuses</a>(<span class="keywordtype">bool</span> check);
<a name="l00531"></a>00531 
<a name="l00550"></a>00550 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a70af318e71334255931a6638d2fa693c" title="Writes a general-purpose fuse bit.">flashc_write_gp_fuse_bit</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> gp_fuse_bit, <span class="keywordtype">bool</span> value);
<a name="l00551"></a>00551 
<a name="l00573"></a>00573 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a7bc0b63b79ad5809f7d68b2da7e5e866" title="Writes a general-purpose fuse bit-field.">flashc_write_gp_fuse_bitfield</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pos, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, uint64_t value);
<a name="l00574"></a>00574 
<a name="l00592"></a>00592 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#acd1a7d62446687fe6db36f4ff35e7cbc" title="Writes a general-purpose fuse byte.">flashc_write_gp_fuse_byte</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> gp_fuse_byte, uint8_t value);
<a name="l00593"></a>00593 
<a name="l00610"></a>00610 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a39415e6bf815ab6bc734bf1e1cfe3bed" title="Writes all general-purpose fuses.">flashc_write_all_gp_fuses</a>(uint64_t value);
<a name="l00611"></a>00611 
<a name="l00628"></a>00628 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a63c172f89cfe0f3e3cf1c6eadc62f5f5" title="Sets a general-purpose fuse bit with the appropriate erase and write operations.">flashc_set_gp_fuse_bit</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> gp_fuse_bit, <span class="keywordtype">bool</span> value);
<a name="l00629"></a>00629 
<a name="l00649"></a>00649 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#aeef87beafc415e3a116072f74845d7ab" title="Sets a general-purpose fuse bit-field with the appropriate erase and write operations.">flashc_set_gp_fuse_bitfield</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pos, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, uint64_t value);
<a name="l00650"></a>00650 
<a name="l00666"></a>00666 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#afb6970fabde5991a634954229fb4e5ca" title="Sets a general-purpose fuse byte with the appropriate erase and write operations.">flashc_set_gp_fuse_byte</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> gp_fuse_byte, uint8_t value);
<a name="l00667"></a>00667 
<a name="l00682"></a>00682 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#a65d5726797f7216ce80969b7349c7902" title="Sets all general-purpose fuses with the appropriate erase and write operations.">flashc_set_all_gp_fuses</a>(uint64_t value);
<a name="l00683"></a>00683 
<a name="l00685"></a>00685 
<a name="l00686"></a>00686 
<a name="l00689"></a>00689 
<a name="l00690"></a>00690 
<a name="l00701"></a>00701 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#affafe9cb74731d817b721d2a52093412" title="Clears the page buffer.">flashc_clear_page_buffer</a>(<span class="keywordtype">void</span>);
<a name="l00702"></a>00702 
<a name="l00709"></a>00709 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a05a9c2063e643943bae09f0786bcc063" title="Tells whether the page to which the last Quick Page Read or Quick Page Read User Page command was app...">flashc_is_page_erased</a>(<span class="keywordtype">void</span>);
<a name="l00710"></a>00710 
<a name="l00723"></a>00723 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a078a084303b02d665fe3779bc096a150" title="Applies the Quick Page Read command to a page.">flashc_quick_page_read</a>(<span class="keywordtype">int</span> page_number);
<a name="l00724"></a>00724 
<a name="l00744"></a>00744 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a8bd196144d3485a9b50b7c5fffc9fab2" title="Erases a page.">flashc_erase_page</a>(<span class="keywordtype">int</span> page_number, <span class="keywordtype">bool</span> check);
<a name="l00745"></a>00745 
<a name="l00761"></a>00761 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#abff832a6e31c349197439da831d71b7d" title="Erases all pages within the flash array.">flashc_erase_all_pages</a>(<span class="keywordtype">bool</span> check);
<a name="l00762"></a>00762 
<a name="l00781"></a>00781 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#aa10438433246139bee71da6db2bb5bd5" title="Writes a page from the page buffer.">flashc_write_page</a>(<span class="keywordtype">int</span> page_number);
<a name="l00782"></a>00782 
<a name="l00790"></a>00790 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a1921803f9ba1d21a7926d9dafc400f36" title="Issues a Quick Page Read User Page command to the FLASHC.">flashc_quick_user_page_read</a>(<span class="keywordtype">void</span>);
<a name="l00791"></a>00791 
<a name="l00804"></a>00804 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="flashc_8c.html#a7160c001cada0a9a0162cac2305a9038" title="Erases the User page.">flashc_erase_user_page</a>(<span class="keywordtype">bool</span> check);
<a name="l00805"></a>00805 
<a name="l00816"></a>00816 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="flashc_8c.html#ad04374b721dca9c534d7cd041ae24712" title="Writes the User page from the page buffer.">flashc_write_user_page</a>(<span class="keywordtype">void</span>);
<a name="l00817"></a>00817 
<a name="l00818"></a>00818 
<a name="l00843"></a>00843 <span class="keyword">extern</span> <span class="keyword">volatile</span> <span class="keywordtype">void</span> *<a class="code" href="flashc_8c.html#a9157e8cdcd527943f8284c0de37cd91a" title="Copies nbytes bytes to the flash destination pointed to by dst from the repeated src source byte...">flashc_memset8</a>(<span class="keyword">volatile</span> <span class="keywordtype">void</span> *dst, uint8_t src, <span class="keywordtype">size_t</span> nbytes, <span class="keywordtype">bool</span> erase);
<a name="l00844"></a>00844 
<a name="l00869"></a>00869 <span class="keyword">extern</span> <span class="keyword">volatile</span> <span class="keywordtype">void</span> *<a class="code" href="flashc_8c.html#ad9b00f6e409b0b38924dba961bd52145" title="Copies nbytes bytes to the flash destination pointed to by dst from the repeated src big-endian sourc...">flashc_memset16</a>(<span class="keyword">volatile</span> <span class="keywordtype">void</span> *dst, uint16_t src, <span class="keywordtype">size_t</span> nbytes, <span class="keywordtype">bool</span> erase);
<a name="l00870"></a>00870 
<a name="l00895"></a>00895 <span class="keyword">extern</span> <span class="keyword">volatile</span> <span class="keywordtype">void</span> *<a class="code" href="flashc_8c.html#a44e771a3f7ed3728ef366cf2a8b67592" title="Copies nbytes bytes to the flash destination pointed to by dst from the repeated src big-endian sourc...">flashc_memset32</a>(<span class="keyword">volatile</span> <span class="keywordtype">void</span> *dst, uint32_t src, <span class="keywordtype">size_t</span> nbytes, <span class="keywordtype">bool</span> erase);
<a name="l00896"></a>00896 
<a name="l00921"></a>00921 <span class="keyword">extern</span> <span class="keyword">volatile</span> <span class="keywordtype">void</span> *<a class="code" href="flashc_8c.html#a9ab40621c7f4c7372cb3147c014d7d27" title="Copies nbytes bytes to the flash destination pointed to by dst from the repeated src big-endian sourc...">flashc_memset64</a>(<span class="keyword">volatile</span> <span class="keywordtype">void</span> *dst, uint64_t src, <span class="keywordtype">size_t</span> nbytes, <span class="keywordtype">bool</span> erase);
<a name="l00922"></a>00922 
<a name="l00948"></a><a class="code" href="flashc_8h.html#a0dd22b622f63a5c147466b9599321961">00948</a> <span class="preprocessor">#define flashc_memset(dst, src, src_width, nbytes, erase) \</span>
<a name="l00949"></a>00949 <span class="preprocessor">        TPASTE2(flashc_memset, src_width)((dst), (src), (nbytes), (erase))</span>
<a name="l00950"></a>00950 <span class="preprocessor"></span>
<a name="l00981"></a>00981 <span class="keyword">extern</span> <span class="keyword">volatile</span> <span class="keywordtype">void</span> *<a class="code" href="flashc_8c.html#a342404f6e3f2757138c8dc58916ffef1" title="Copies nbytes bytes to the flash destination pointed to by dst from the source pointed to by src...">flashc_memcpy</a>(<span class="keyword">volatile</span> <span class="keywordtype">void</span> *dst, <span class="keyword">const</span> <span class="keywordtype">void</span> *src, <span class="keywordtype">size_t</span> nbytes, <span class="keywordtype">bool</span> erase);
<a name="l00982"></a>00982 
<a name="l00983"></a>00983 <span class="preprocessor">#if UC3C</span>
<a name="l00984"></a>00984 <span class="preprocessor"></span>
<a name="l00990"></a>00990 <span class="keywordtype">void</span> flashc_set_flash_waitstate_and_readmode(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> cpu_f_hz);
<a name="l00991"></a>00991 <span class="preprocessor">#endif // UC3C device-specific implementation</span>
<a name="l00992"></a>00992 <span class="preprocessor"></span>
<a name="l00994"></a>00994 
<a name="l00995"></a>00995 
<a name="l00996"></a>00996 <span class="preprocessor">#endif  // _FLASHC_H_</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Dec 19 2011 21:04:51 for OpenShoe by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
